import request from '@/utils/request'
import URL from '@/api/baseUrl'
export default class Warehouse {
  /**
   * 查询仓库列表
   */
  static list (data = {}) {
    return request.get(`${URL.comBasic}/bas-warehouse/list`, data)
  }
 static queryList (data = {}) {
    return request.get(`${URL.comBasic}/bas-warehouse/list`, data)
  }

  
  /**
   * 查询仓库详情
   */
  static getInfo (id) {
    return request.get(`${URL.comBasic}/bas-warehouse/getInfo/${id}`)
  }
  /**
   * 删除仓库
   */
  static remove (ids) {
    return request.delete(`${URL.comBasic}/bas-warehouse/remove`,ids)
  }
  /**
   * 新增仓库
   */
  static add (data = {}) {
    return request.post(`${URL.comBasic}/bas-warehouse/add`, data)
  }
  /**
   * 修改仓库
   */
  static edit (data = {}) {
    return request.put(`${URL.comBasic}/bas-warehouse/edit`, data)
  }
}
